package com.fasteat.message.entity;

/**
 * @author: whz
 * @Description:
 * @Date Created in 2021/2/19
 */
public class Message {


    /*要发送的消息内容*/
    private  String receiverId;
    /*要发送的消息内容*/
    private  String payload;
    /*通知栏展示的通知的标题*/
    private  String title;
    /*通知栏展示的通知描述*/
    private  String description;

    private Message(Builder builder) {
        this.payload = builder.payload;
        this.title = builder.title;
        this.description = builder.description;
        this.receiverId = builder.receiverId;
    }

    public static class Builder {
        private  String payload;
        private  String title;
        private  String description;
        private  String receiverId;

        public Builder(){

        }

        public Builder receiverId(String receiverId) {
            this.receiverId = receiverId;
            return this;
        }

        public Builder payload(String payload) {
            this.payload = payload;
            return this;
        }

        public Builder title(String title) {
            this.title = title;
            return this;
        }

        public Builder description(String description) {
            this.description = description;
            return this;
        }

        public Message build(){
            return new Message(this);
        }

    }


}
